home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2002 #11
/
Amiga Plus CD - 2002 - No. 11.iso
/
Tools
/
ShareMailGiftware
/
Frogger
/
plugins_src
/
p_ac3
/
makefile
< prev
next >
Wrap
Makefile
|
2002-10-28
|
1KB
|
45 lines
CC=ppc-amigaos-gcc
CCOPTS = -O9 -mcpu=604e -fforce-addr -ffast-math -mmultiple \
-mstring -fbranch-count-reg -fsched-spec-load-dangerous \
-fpretend-float -fmove-all-movables -mfused-madd -mupdate \
-fexpensive-optimizations -I. -I..
ALL: a52.xp
OBJS= ../pinit.o o/decode.o
o/decode.o: decode.c ../pinit.h
ppc-amigaos-gcc -c $(CCOPTS) -Wall decode.c -o o/decode.o
a52.xp: $(OBJS) libac3.a
ppc-amigaos-gcc -d -s -o $@ $(OBJS) -nostartfiles -L. -lac3 -ldjbfft
vlink -r -S -b elf32powerup -o tmp $@
ppc-amigaos-strip -S -x -X --strip-unneeded -R .comment tmp -KPPCGetFuncTable
mv tmp $@
LIBOBJS= o/bitstream.oppc o/imdct.oppc o/bit_allocate.oppc o/parse.oppc o/downmix.oppc o/ac3.oppc
libac3.a: $(LIBOBJS)
ppc-amigaos-ar cru libac3.a $(LIBOBJS)
ppc-amigaos-ranlib libac3.a
o/bitstream.oppc: bitstream.c config.h a52.h a52_internal.h bitstream.h
$(CC) -c bitstream.c -o o/bitstream.oppc $(CCOPTS)
o/imdct.oppc: imdct.c config.h a52.h a52_internal.h
$(CC) -c imdct.c -o o/imdct.oppc $(CCOPTS) -DLIBA52_DJBFFT
o/ac3.oppc: ac3.c ac3.h
$(CC) -c ac3.c -o o/ac3.oppc $(CCOPTS)
o/bit_allocate.oppc: bit_allocate.c config.h a52.h a52_internal.h
$(CC) -c bit_allocate.c -o o/bit_allocate.oppc $(CCOPTS)
o/parse.oppc: parse.c config.h a52.h a52_internal.h bitstream.h tables.h
$(CC) -c parse.c -o o/parse.oppc $(CCOPTS)
o/downmix.oppc: downmix.c config.h a52.h a52_internal.h
$(CC) -c downmix.c -o o/downmix.oppc $(CCOPTS)